

export TOOL_HOME=/Applications/DevEco-Studio.app/Contents
export CC=$TOOL_HOME/sdk/default/openharmony/native/llvm/bin/aarch64-unknown-linux-ohos-clang

export GOOS=openharmony
export GOARCH=arm64
export CGO_ENABLED=1

GO=~/go/go1.22.10/bin/go

${GO} build   t.go


#GOOS=openharmony GOARCH=arm64 CGO_ENABLED=1 CC=/Applications/DevEco-Studio.app/Contents/sdk/default/openharmony/native/llvm/bin/aarch64-unknown-linux-ohos-clang \
#go  build -buildmode=c-shared -o libCounter.so v3.go


#GOOS=openharmony GOARCH=arm64 CGO_ENABLED=1 CC=/Applications/DevEco-Studio.app/Contents/sdk/default/openharmony/native/llvm/bin/aarch64-unknown-linux-ohos-clang \
#go  build -buildmode=c-archive -o libCounter.a v3.go